<?php
//提现通知
namespace App\Http\Controllers\Admin\Mobile;

use Illuminate\Http\Request;
use App\Http\Controllers\AdapterWebController;
use App\Modules\Mobile\Withdraw;

class WithdrawController extends AdapterWebController
{
    //通知
    public function agentInform()
    {
        $data = ['info_id' => session('agent_id')];
        $list = $this->appLayerExec(Withdraw::class, 'agentInform', $data);
        return view('admin.agent.mobile.inform', ['list' => $list['res']]);
    }

    //代理申请提现
    public function kiting()
    {
        $data = ['info_id' => session('agent_id')];
        $res = $this->appLayerExec(Withdraw::class, 'kiting', $data);
        return($res);
    }

    //我的个人中心
    public function person()
    {
    	$data = ['info_id' => session('agent_id')];
        $res = $this->appLayerExec(Withdraw::class, 'person', $data);
        return view('admin.agent.mobile.person_center', ['res' => $res['res']]);
    }

	//历史记录
    public function historyRecord()
    {
    	$data = ['info_id' => session('agent_id')];
    	$list = $this->appLayerExec(Withdraw::class, 'historyRecord', $data);
    	return view('admin.agent.mobile.history_record', ['list' => $list['res']]);
        
    }
	//代理用户
    public function agencyUser()
    {
    	$data = ['id' => session('agent_id')];
    	$list = $this->appLayerExec(Withdraw::class, 'agencyUser', $data);
        return view('admin.agent.mobile.agency_user', ['list' => $list['res']]);
    }

}
